package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 采购车实体类
 * @author Zchaolin
 * @version 1.0
 * @created 29-7月-2022 9:34:36
 */
@TableName("t_buyerCar")
public class BuyerCarBean {

	/**
	 * 编号
	 */
	@TableId(value = "pk_buyerCarId",type = IdType.AUTO)
	private Integer id;
	/**
	 * 采购的商品
	 */
	@TableField(exist = false)
	private ProductBean product;
	/**
	 * 采购商品编号
	 */
	@TableField("fk_productId")
	private String productId;
	/**
	 * 采购数量
	 */
	@TableField("bc_num")
	private Integer num=1;
	/**
	 * 采购用户编号
	 */
	@TableField("fk_userId")
	private Integer userId;
	/**采购价*/
	@TableField("bc_money")
	private Integer buyMoney;

	public BuyerCarBean(){

	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public ProductBean getProduct() {
		return product;
	}

	public void setProduct(ProductBean product) {
		this.product = product;
	}

	public String getProductId() {
		return productId;
	}

	public Integer getBuyMoney() {
		return buyMoney;
	}

	public void setBuyMoney(Integer buyMoney) {
		this.buyMoney = buyMoney;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "BuyerCarBean{" +
				"id=" + id +
				", product=" + product +
				", productId=" + productId +
				", num=" + num +
				", userId=" + userId +
				'}';
	}
}